home *** CD-ROM | disk | FTP | other *** search
- /*
- ** Apple Macintosh Developer Technical Support
- **
- ** Header for SimpleQT functions using SimpleApp framework.
- **
- ** by Mark Cookson, Apple Developer Technical Support
- **
- ** File: SimpleApp_Sound.h
- **
- ** Copyright ©1996 Apple Computer, Inc.
- ** All rights reserved.
- **
- ** You may incorporate this sample code into your applications without
- ** restriction, though the sample code has been provided "AS IS" and the
- ** responsibility for its operation is 100% yours. However, what you are
- ** not permitted to do is to redistribute the source as "Apple Sample
- ** Code" after having made changes. If you're going to re-distribute the
- ** source, we require that you make it clear in the source that the code
- ** was descended from Apple Sample Code, but that you've made changes.
- */
-
- #include <Windows.h>
-
- #include "SimpleApp.h"
- #include "DBFF.h"
-
- #define oneBuffer (1)
- #define tenBuffers (10)
- #define soundPlaying (!ASoundIsDone (mySoundInfo) && !paused)
- #define qtStyle 0
- #define cdStyle 1
- #define kScrollMinValue 1
-
- /* Globals */
- ControlHandle playButton1 = nil,
- playButton2 = nil,
- playButton3 = nil,
- playButton4 = nil,
- playButton5 = nil,
- playButton6 = nil,
- playAllButton = nil,
- muteCheck1 = nil,
- muteCheck2 = nil,
- muteCheck3 = nil,
- muteCheck4 = nil,
- muteCheck5 = nil,
- muteCheck6 = nil,
- recordButton = nil;
- Boolean gDone = false,
- sound1Set = false,
- sound2Set = false,
- sound3Set = false,
- sound4Set = false,
- sound5Set = false,
- sound6Set = false,
- sound1Playing = false,
- sound2Playing = false,
- sound3Playing = false,
- sound4Playing = false,
- sound5Playing = false,
- sound6Playing = false,
- playAll = false,
- prepairedToRecord = false,
- recording = false,
- karakoe = false;
- SoundInfoPtr mySoundInfo1 = nil,
- mySoundInfo2 = nil,
- mySoundInfo3 = nil,
- mySoundInfo4 = nil,
- mySoundInfo5 = nil,
- mySoundInfo6 = nil;
- GrafPtr gTheWindow = nil;
- short soundsToSync = 0;
-
- /* Function declarations */
- short DoPlay1 (void);
- short DoPlay2 (void);
- short DoPlay3 (void);
- short DoPlay4 (void);
- short DoPlay5 (void);
- short DoPlay6 (void);
- short DoPlayAll (void);
- OSErr MuteSound1 (void);
- OSErr MuteSound2 (void);
- OSErr MuteSound3 (void);
- OSErr MuteSound4 (void);
- OSErr MuteSound5 (void);
- OSErr MuteSound6 (void);
- short DoRecord (void);
- pascal OSErr ClearAllSounds (long menuResult);
- void MyIdleProc (EventRecord *evt);
- void main (void);
- void EnableControl (ControlRef cr);
- void DisableControl (ControlRef cr);
-